﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.BaseData
{
    partial class MeterBookMap
    {
        partial void MeterBookMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Biao_CMC)
                .HasMaxLength(16);
            this.Property(t => t.Biao_CBH)
                .HasMaxLength(16);
            this.ToTable("Bsc_Biao_CSZ");
            this.Property(t => t.Id).HasColumnName("Biao_CSZ_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasOptional(t => t.Area).WithMany(d => d.MeterBook).HasForeignKey(t => t.Qu_YSZ_No);

        }
    }
}
